package com.yidu.ladder.system.domain;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 资源实体类
 * @author ld
 *
 */
public class Resource implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -5956080851711826871L;

	private String resourceId; // 资源ID

	@NotEmpty(message = "资源名不能为空")
	private String resourceName; // 资源名

	@NotEmpty(message = "资源简称不能为空")
	private String resourceAbbr; // 资源简称

	private String parentId; // 资源父ID

	@NotEmpty(message = "资源路径不能为空")
	private String resourceUrl; // 资源路径

	private String subsetId; // 资源类型ID

	@NotEmpty(message = "资源类型名不能为空")
	private String subsetName; // 资源类型名

	@NotNull(message = "资源等级不能为空")
	private Integer resourceRank; // 资源等级

	private Integer resourceNumber; // 资源序号

	private String description; // 资源描述

	private String useable; // 资源状态

	public Resource() {
		super();
	}

	public Resource(String resourceId, String resourceName, String resourceAbbr, String parentId, String resourceUrl,
			String subsetId, String subsetName, Integer resourceRank, Integer resourceNumber, String description,
			String useable) {
		super();
		this.resourceId = resourceId;
		this.resourceName = resourceName;
		this.resourceAbbr = resourceAbbr;
		this.parentId = parentId;
		this.resourceUrl = resourceUrl;
		this.subsetId = subsetId;
		this.subsetName = subsetName;
		this.resourceRank = resourceRank;
		this.resourceNumber = resourceNumber;
		this.description = description;
		this.useable = useable;
	}

	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getResourceAbbr() {
		return resourceAbbr;
	}

	public void setResourceAbbr(String resourceAbbr) {
		this.resourceAbbr = resourceAbbr;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public String getSubsetId() {
		return subsetId;
	}

	public void setSubsetId(String subsetId) {
		this.subsetId = subsetId;
	}

	public String getSubsetName() {
		return subsetName;
	}

	public void setSubsetName(String subsetName) {
		this.subsetName = subsetName;
	}

	public Integer getResourceRank() {
		return resourceRank;
	}

	public void setResourceRank(Integer resourceRank) {
		this.resourceRank = resourceRank;
	}

	public Integer getResourceNumber() {
		return resourceNumber;
	}

	public void setResourceNumber(Integer resourceNumber) {
		this.resourceNumber = resourceNumber;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	@Override
	public String toString() {
		return "Resource [resourceId=" + resourceId + ", resourceName=" + resourceName + ", resourceAbbr="
				+ resourceAbbr + ", parentId=" + parentId + ", resourceUrl=" + resourceUrl + ", subsetId=" + subsetId
				+ ", subsetName=" + subsetName + ", resourceRank=" + resourceRank + ", resourceNumber=" + resourceNumber
				+ ", description=" + description + ", useable=" + useable + "]";
	}

	
}
